package org.goldenport.g3.sample

import org.goldenport.g3._

/**
 * @since   Apr.  3, 2010
 * @version Apr. 25, 2010
 * @author  ASAMI, Tomoharu
 **/
class Multicast extends G3Application {
  agent('consumer1) {
    case x: String => println("consumer1 = " + x);x
  }
  agent('consumer2) {
    case x: String => println("consumer2 = " + x);x
  }
  agent('consumer3) {
    case x: String => println("consumer3 = " + x);x
  }

  start("hello") publish("consumer1", "consumer2", "consumer3")
}
